package edu.columbia.sportsleagueandroid.server;

import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import com.google.appengine.api.rdbms.AppEngineDriver;

public class DataStore {

	public static Connection getConnection() throws IOException {

		Connection connection = null;
		try {
			DriverManager.registerDriver(new AppEngineDriver());
			connection = DriverManager
					.getConnection("jdbc:google:rdbms://jpsdb2012:transcloudinstance/sports_cricket_db");
		} catch (Exception e) {
			e.printStackTrace();
		}

		return connection;
	}

}
